package com.zyh.scs.admin.service.jd;


import com.zyh.scs.admin.api.bo.JDAuthDto;
import com.zyh.scs.admin.api.bo.JDAuthVo;
import com.zyh.scs.admin.base.open.LaoSheResponse;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

public interface JDAuthService {

	/**
	 * 授权登录
	 *
	 * @param dto
	 * @param request
	 *
	 * @return
	 */
	LaoSheResponse<JDAuthVo> auth(JDAuthDto dto, HttpServletRequest request);

	/**
	 * 授权登录-重定向
	 *
	 * @param dto
	 * @param request
	 * @param response
	 *
	 * @return
	 */
	void authRedirect(JDAuthDto dto, HttpServletRequest request, HttpServletResponse response);

}